package com.zr.service.sys;

import com.zr.vo.sys.User;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface UserInterface {
    List<User> selectByUser(User usr);

    void insert( User usr);
    public User login(User usr);

    String getImgByUrl(@Nullable String imgUrl);

    void change(@NotNull User usr);

    void add(@NotNull User usr);

    void edit(@NotNull User usr);

    void del(@NotNull String userId);

    String uploadImg(@NotNull MultipartFile file)throws IOException;

    void logout();


}
